package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter@Getter
public class GiftBill {
    private Long id;

    private Long memberId;

    private String memberName;//会员名字

    private Long giftId;

    private String giftName;//礼品名称

    private BigDecimal number;//兑换数量

    private BigDecimal points;//兑换一个所需积分

    private BigDecimal totalPoints;//兑换需要的积分

    private Long inputId;//操作人id
    private String inputName;//操作人名字
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputTime;//兑换时间


}